package com.lxj.student_security.entity.vo;

import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Tree<T> {
    /**
     * 节点id
     */
    private Integer id;
    /**
     *
     */
    private String title;
    /**
     * 节点状态
     */
    private Map<String,Object> status;
    /**
     * 节点是否被选中
     */
    private boolean checked = false;
    /**
     * 节点属性
     */
    private Map<String,Object> attributes;
    /**
     * 节点的子节点
     */
    private List<Tree<T>> children = new ArrayList<>();
    /**
     * 节点的父节点id
     */
    private Integer pid;
    /**
     * 是否有父节点
     */
    private boolean hasParent =false;
    /**
     * 是否有子节点
     */
    private boolean hasChildren = false;
    private String src;
}
